package com.zide.platform.vo.result.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 石添添
 * @description
 * @date 2024-09-22 16:01
 */
@Data
@Schema(description = "部门信息返回结果")
public class PlatformDeptResultVO {
    @Schema(description = "部门id")
    private Long id;

    @Schema(description = "父部门ID")
    private Long parentId;

    @Schema(description = "祖级列表")
    private String ancestors;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "显示顺序")
    private Integer sorts;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "联系电话")
    private String mobile;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "部门状态:0正常,1停用")
    private Integer status;

    @Schema(description = "逻辑删除【0：未删除，1：已删除】")
    private Integer deleted;

    @Schema(description = "父部门名称")
    private String parentName;

    @Schema(description = "子部门")
    private List<PlatformDeptResultVO> children = new ArrayList<>();
}
